<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>登录页面</title>
<script type="text/javascript" src="{{$smarty.const.TIN_ROOT_URL}}res/js/jquery/jquery.min.js"></script>
<script type="text/javascript">
function changeCode(){
	$('#check-code-pic').attr('src','{{$smarty.const.TIN_ROOT_URL}}res/vcode.php?id='+Math.random());
}
</script>
</head>

<body>

<form id="form1" name="form1" method="post" action="">
<input type="hidden" name="tourl" id="tourl" value="{{$smarty.request.tourl}}" />
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td align="right">用户名：</td>
      <td><input type="text" name="username" id="username" /></td>
    </tr>
    <tr>
      <td align="right">密码：</td>
      <td><input type="password" name="password" id="password" /></td>
    </tr>
    <tr>
      <td align="right">验证码：</td>
      <td><input type="text" name="code" id="code" maxlength="4" />
      <img id="check-code-pic" src="{{$smarty.const.TIN_ROOT_URL}}res/vcode.php" style="cursor:pointer" onclick="changeCode()" width="70" border="0" /></td>
    </tr>
    <tr>
      <td colspan="2" align="center"><input type="submit" name="btnlogin" id="btnlogin" value="登 录" /></td>
    </tr>
  </table>
</form>

</body>
</html>
